import request from '@/utils/request'

// 查询温湿度统计列表
export function listResult(query) {
  return request({
    url: '/report/result/list',
    method: 'get',
    params: query
  })
}

// 查询温湿度统计详细
export function getResult(id) {
  return request({
    url: '/report/result/' + id,
    method: 'get'
  })
}

// 新增温湿度统计
export function addResult(data) {
  return request({
    url: '/report/result',
    method: 'post',
    data: data
  })
}

// 修改温湿度统计
export function updateResult(data) {
  return request({
    url: '/report/result',
    method: 'put',
    data: data
  })
}

// 删除温湿度统计
export function delResult(id) {
  return request({
    url: '/report/result/' + id,
    method: 'delete'
  })
}
export function processResult(){
  return request({
    url: '/report/result/processHisResult',
    method: 'post'

  })
}
